<!DOCTYPE html>
<html>
<head>
    <title>我的招生代理</title>
		<#include "/header.html">

    <script language="javascript">
        function preview(oper)
        {
            if (oper < 10){
                bdhtml=window.document.body.innerHTML;//获取当前页的html代码
                sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域
                eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域
                prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18); //从开始代码向后取html
                prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//从结束代码向前取html
                window.document.body.innerHTML=prnhtml;
                window.print();
                window.document.body.innerHTML=bdhtml;
            } else {
                window.print();
            }
            window.location.reload();
        }
    </script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <code class="language-html"><a href="javascript:void(0)" class="btn btn-primary" onclick="exportWord()">导出Word文档</a></code>
            <input type=button name='button_export' title='打印' class="btn btn-primary" onclick=preview(1) value=打印>
            <br>
            <br>
            <span v-html="msg">{{msg}}</span>
        </div>
        <!--startprint1-->
        <div id="export_word">
            <table id="jqGrid"></table>
            <div id="jqGridPager"></div>
        </div>
    </div>
    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">代理人项目</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agency.name" placeholder="代理人项目"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agency.unit" placeholder="单位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">联系电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agency.phone" placeholder="联系电话"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">夏考</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agency.xiakao" placeholder="夏考"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单招</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agency.danzhao" placeholder="单招"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">合作时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agency.cooperationtime" placeholder="合作时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">上级代理</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agency.superior" placeholder="上级代理"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/gaokaobaobei/kaoyanaudit.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/js/modules/gaokaobaobei/FileSaver.js"></script>
<script src="${request.contextPath}/statics/js/modules/gaokaobaobei/jquery.wordexport.js"></script>
<script>
    function exportWord(){
        $("#export_word").wordExport();
    }
</script>
<!--endprint1-->
</body>
</html>